<template>
	<view>
		<u-cell-group>
			<u-cell-item title="登录账号" :value="userInfo.account"></u-cell-item>
			<u-cell-item title="真实姓名" :value="userInfo.realName"></u-cell-item>
			<u-cell-item title="所在公司" :value="userInfo.companyName"></u-cell-item>
			<u-cell-item title="所在部门" :value="userInfo.departmentName"></u-cell-item>
		</u-cell-group>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				userInfo:{}
			}
		},
		onLoad() {
			this.initPage()
		},
		methods: {
			async initPage(){
				let data = await this.$u.api.userInfo()
				this.userInfo = data.Data
				console.log(data);
			}
		}
	}
</script>

<style>

</style>
